home *** CD-ROM | disk | FTP | other *** search
- if(!pauseflag)
- {
- frameN += 1;
- if(frameN % 12 == 0)
- {
- tim -= 1;
- if(tim < 10)
- {
- tick_Sound.start();
- }
- min = Math.floor(tim / 60);
- dsek = Math.floor((tim - 60 * min) / 10);
- sek = Math.floor(tim - 60 * min - 10 * dsek);
- timepanel = min + ":" + dsek + sek;
- }
- }
- scorepanel = String(score);
- livespanel = String(lives);
- fire = false;
- if(_root.finishline._y > 350)
- {
- engine_Sound.stop();
- level_finish_Sound.start();
- numlevel += 1;
- gotoAndStop("wait_level");
- play();
- }
- if(tim <= 0)
- {
- lives -= 1;
- livespanel = String(lives);
- game_over_Sound.start();
- if(lives <= 0)
- {
- gotoAndStop("game_over");
- play();
- }
- else
- {
- gotoAndStop("time_out");
- play();
- }
- }
- if(trydead)
- {
- trydead = false;
- lives -= 1;
- livespanel = String(lives);
- var i = _root.getNextHighestDepth();
- _root.attachMovie("expl","expl" + String(i),i,{_x:car._x,_y:car._y});
- if(lives <= 0)
- {
- game_over_Sound.start();
- gotoAndStop("game_over");
- play();
- }
- else
- {
- gotoAndStop("dead");
- play();
- }
- }
- if(Key.isDown(27))
- {
- lives = 1;
- trydead = true;
- engine_Sound.stop();
- }
-